﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="frmListaDePresupuestos.aspx.cs" Inherits="frmListaDePresupuestos" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style3
        {
            
            font-size: normal;
        }
                
         .style38
        {
            position: absolute;
            left: 202px;
            top: 196px;
            width: 1067px;
            height: 87px;
        }
        .style39
        {
            position: absolute;
            left: 217px;
            top: 672px;
        }
        .style40
        {
            position: absolute;
            left: 230px;
            top: 569px;
        }
        .style41
        {
            position: absolute;
            left: 383px;
            top: 569px;
            height: 30px;
        }
        .style42
        {
            position: absolute;
            left: 465px;
            top: 570px;
        }
        .style43
        {
            position: absolute;
            left: 626px;
            top: 569px;
            height: 30px;
        }
        .style44
        {
            position: absolute;
            left: 705px;
            top: 568px;
        }
        .style47
        {
            position: absolute;
            left: 839px;
            top: 572px;
        }
        .style48
        {
            width: 1108px;
        }
        .style50
        {
            position: absolute;
            left: 188px;
            top: 184px;
            width: 1074px;
            height: 364px;
        }
        .style51
        {
            position: absolute;
            left: 190px;
            top: 558px;
            width: 1072px;
            height: 41px;
        }
        .style53
        {
            position: absolute;
            left: 625px;
            top: 588px;
            width: 237px;
            height: 41px;
        }
        .style54
        {
            position: absolute;
            left: 379px;
            top: 587px;
            width: 237px;
            height: 36px;
        }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
  <h4>Menu</h4>
        <br>
        <p>
        <a href="frmPresupuestos.aspx">Presupuestos</a>
        <br>
        <a href="frmPrestacionDeServicios.aspx">Prestacion de Servicios</a>
        <br>
        <!--<a href="frmProductoAlta.aspx">Registrar Producto</a>!-->
        <br/>
        </p>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
   
   <h1 class="style48">Listado De Presupuestos</h1>
    <p>
       
           
                
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CssClass="style38"
            DataKeyNames="Nro.Presup." DataSourceID="SqlDataSource1" 
            BackColor="White" BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" 
            CellPadding="3" CellSpacing="1" GridLines="None" 
            AllowPaging="True" AllowSorting="True" 
            onselectedindexchanged="GridView1_SelectedIndexChanged1">
            <Columns>
                <asp:CommandField ButtonType="Button" SelectText="Imprimir" 
                    ShowSelectButton="True">
                <ItemStyle HorizontalAlign="Justify" Width="55px" />
                </asp:CommandField>
                <asp:BoundField DataField="Nro.Presup." HeaderText="Nro.Presup." 
                    InsertVisible="False" ReadOnly="True" SortExpression="Nro.Presup." >
                <ItemStyle Width="100px" />
                </asp:BoundField>
                <asp:BoundField DataField="Empresa" HeaderText="Empresa" 
                    SortExpression="Empresa" >
                <ItemStyle Width="150px" />
                </asp:BoundField>
                <asp:BoundField DataField="Fecha Presup." HeaderText="Fecha Presup." 
                    SortExpression="Fecha Presup." >
                <ItemStyle Width="80px" />
                </asp:BoundField>
                <asp:BoundField DataField="Detalle" HeaderText="Detalle" 
                    SortExpression="Detalle" >
                <ItemStyle Width="300px" />
                </asp:BoundField>
                <asp:BoundField DataField="Importe" HeaderText="Importe" 
                    SortExpression="Importe" ReadOnly="True" >
                <ItemStyle Width="80px" />
                </asp:BoundField>
                <asp:BoundField DataField="Estado" HeaderText="Estado" 
                    SortExpression="Estado" >
                <ItemStyle Width="90px" />
                </asp:BoundField>
                <asp:BoundField DataField="Vencimiento" HeaderText="Vencimiento" 
                    SortExpression="Vencimiento" >
                <ItemStyle Width="90px" />
                </asp:BoundField>
            </Columns>
            <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
            <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
            <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
            <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
            <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#F1F1F1" />
            <SortedAscendingHeaderStyle BackColor="#594B9C" />
            <SortedDescendingCellStyle BackColor="#CAC9C9" />
            <SortedDescendingHeaderStyle BackColor="#33276A" />
        </asp:GridView >
                    
               
                   
                       
                    <asp:Button ID="Button2" runat="server" Height="32px"  CssClass="style40"
            onclick="Button2_Click" Text="Imprimir" Width="125px" />
                    <asp:Label ID="Label3" runat="server"  CssClass="style47" Font-Bold="True" ForeColor="Red"></asp:Label>
                           
                           
                      
                           
                    <asp:Button ID="Button3" runat="server"  CssClass="style41"
            onclick="Button3_Click" Text="Desde" Width="75px" />
        <asp:TextBox ID="TextBox1" runat="server" BackColor="#CCCCFF" Height="30px"  CssClass="style42"
            ReadOnly="True" Width="107px"></asp:TextBox>
                   
                    
        <strong>
                   
    <asp:Panel ID="Panel5" runat="server" position= "absolute" BorderStyle="Groove" CssClass="style50"
       >
      
    </asp:Panel>
                   
        </strong>
                                
                           
                           
                    <asp:Button ID="Button4" runat="server"  CssClass="style43"
            onclick="Button4_Click" Text="Hasta" Width="75px" />
        <asp:TextBox ID="TextBox2" runat="server" BackColor="#CCCCFF" Height="30px"  CssClass="style44"
            ReadOnly="True" Width="103px"></asp:TextBox>
                                
                            
                            
                      
                     
                           
       </p>
    <p>
        
       
    </p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p>
        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Volver"  CssClass="style39"
            Height="29px" Width="131px" />
    </p>
    <p>
        &nbsp;&nbsp;&nbsp;&nbsp;
        </p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
            
            
            
            
            
            SelectCommand="SELECT T_Presupuestos.nroPresupuesto AS [Nro.Presup.], T_Empresa.razonSocial AS Empresa, T_Presupuestos.fechaPresupuesto AS [Fecha Presup.], T_Presupuestos.detalle AS Detalle, '$ '+ T_Presupuestos.importe AS Importe, T_Estado.descripcionEstado AS Estado, T_Presupuestos.fechaValidez AS Vencimiento FROM T_Presupuestos INNER JOIN T_Empresa ON T_Presupuestos.cuit = T_Empresa.cuit INNER JOIN T_Estado ON T_Presupuestos.idEstado = T_Estado.idEstado">
        </asp:SqlDataSource>
    </p>
    <p>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
            
            SelectCommand="SELECT T_Presupuestos.nroPresupuesto, T_Presupuestos.detalle, T_Presupuestos.importe, T_Empresa.razonSocial, T_Estado.descripcionEstado, T_Presupuestos.fechaPresupuesto, T_Presupuestos.fechaValidez FROM T_Presupuestos INNER JOIN T_Empresa ON T_Presupuestos.cuit = T_Empresa.cuit INNER JOIN T_Estado ON T_Presupuestos.idEstado = T_Estado.idEstado">
        </asp:SqlDataSource>
    </p>
    <p>
        &nbsp;</p>
    <p>
        <asp:Label ID="Label2" runat="server" Visible="False"></asp:Label>
    </p>
    <strong>
                   
    <asp:Panel ID="Panel6" runat="server" position= "absolute" BorderStyle="Groove" CssClass="style51"
       >
      
        <br />
      
    </asp:Panel>
                   
        </strong>
                                <strong>
                   
    <asp:Panel ID="Panel7" runat="server" position= "absolute" BorderStyle="None" CssClass="style53"
       >
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Calendar ID="Calendar2" runat="server" BackColor="White" 
            BorderColor="Black" BorderStyle="Solid" CellSpacing="1" Font-Names="Verdana" 
            Font-Size="9pt" ForeColor="Black" Height="146px" NextPrevFormat="ShortMonth" 
            onselectionchanged="Calendar2_SelectionChanged" Visible="False" 
            Width="235px">
            <DayHeaderStyle Font-Bold="True" Font-Size="8pt" ForeColor="#333333" 
                Height="8pt" />
            <DayStyle BackColor="#CCCCCC" />
            <NextPrevStyle Font-Bold="True" Font-Size="8pt" ForeColor="White" />
            <OtherMonthDayStyle ForeColor="#999999" />
            <SelectedDayStyle BackColor="#333399" ForeColor="White" />
            <TitleStyle BackColor="#333399" BorderStyle="Solid" Font-Bold="True" 
                Font-Size="12pt" ForeColor="White" Height="12pt" />
            <TodayDayStyle BackColor="#999999" ForeColor="White" />
        </asp:Calendar>
      
        <br />
      
    </asp:Panel>
                   
        </strong>
    <strong>
                   
    <asp:Panel ID="Panel8" runat="server" position= "absolute" BorderStyle="None" CssClass="style54"
       >
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong><asp:Calendar 
            ID="Calendar1" runat="server" BackColor="White" 
            BorderColor="Black" BorderStyle="Solid" CellSpacing="1" Font-Names="Verdana" 
            Font-Size="9pt" ForeColor="Black" Height="177px" NextPrevFormat="ShortMonth" 
            onselectionchanged="Calendar1_SelectionChanged" Visible="False" 
            Width="241px">
            <DayHeaderStyle Font-Bold="True" Font-Size="8pt" ForeColor="#333333" 
                Height="8pt" />
            <DayStyle BackColor="#CCCCCC" />
            <NextPrevStyle Font-Bold="True" Font-Size="8pt" ForeColor="White" />
            <OtherMonthDayStyle ForeColor="#999999" />
            <SelectedDayStyle BackColor="#333399" ForeColor="White" />
            <TitleStyle BackColor="#333399" BorderStyle="Solid" Font-Bold="True" 
                Font-Size="12pt" ForeColor="White" Height="12pt" />
            <TodayDayStyle BackColor="#999999" ForeColor="White" />
        </asp:Calendar>
        </strong>
      
    </asp:Panel>
                   
        </strong>
                                </p>
</asp:Content>

